function imgerror(image, imgurl) {
    $(image).attr("src", imgurl);
}

function isempty(str) {
    return str == undefined || str == null || str == "" || str == "null";
}

function remove_advertising() {
    setInterval(advertising, 1000);
}

function advertising() {
    /**
     * 清除运营商广告
     */
    $("img").each(function () {
        var thisonclick = $(this).attr("onclick");
        //console.log($(this).attr("onclick"));
        if (!isempty(thisonclick)) {
            thisonclick = thisonclick + "";
            if (thisonclick.indexOf("javascript:document.getElementById('ads") >= 0 && thisonclick.indexOf("_wrap').style.display='none'", "") >= 0) {
                $("#" + thisonclick.replace("javascript:document.getElementById('", "").replace("').style.display='none'", "")).hide();
                $(this).click();
            }
        }
    });

    /**
     * 清除联通4G广告
     * @type {boolean}
     */
    var isbody = false;
    var everOrderbox = false;
    $("#myDiv div").each(function () {
        var divid = $(this).attr("id");
        if(divid == "body")
            isbody = true;
        if(divid == "everOrderbox")
            everOrderbox = true;
    });
    if(isbody && everOrderbox) {
        $("#myDiv").remove();
    }

    /**
     * 清除移动4G广告
     */

    /**
     * 清除电信4g广告
     */
}